﻿@model BTKERP.Model.Product

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Product</legend>
     @Html.HiddenFor(model => model.Id)
     <table class="display stylized">
            <tbody>
                <tr>
                    <td> <div class="editor-label">
                            @Html.LabelFor(model => model.Code)
                        </div>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.Code)
                        </div>
                    </td>
                    <td>
                       <div class="editor-label">
                            @Html.LabelFor(model => model.Name)
                        </div>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.Name)
                        </div> 
                    </td>
                    <td>
                       <div class="editor-label">
                            @Html.LabelFor(model => model.PhysicalBarcode)
                        </div>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.PhysicalBarcode)
                        </div> 
                    </td>
                </tr>
                <tr>
                    <td>
                       <div class="editor-label">
                            @Html.LabelFor(model => model.PackBarcode)
                        </div>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.PackBarcode)
                        </div>  
                    </td>
                    <td>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Description)
                        </div>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.Description)
                        </div> 
                    </td>
                    <td>
                       <b>Category : </b> @BTKERP.MVCWeb.AppCode.DataRefHelper.GetCategoryById(Model.CategoryId)
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="display-field">
                        <b>Physical Unit : </b> @BTKERP.MVCWeb.AppCode.DataRefHelper.GetUnitById(Model.PhysicalUnitId)
                    </div>
                    </td>
                    <td>
                      <div class="display-field">
                        <b>Pack Unit : </b> @BTKERP.MVCWeb.AppCode.DataRefHelper.GetUnitById(Model.PackUnitId)
                    </div>
                    </td>
                    <td>
                        <div class="display-field">
                        <b># Pack int Paysical(Unit) :</b>@Html.DisplayFor(model => model.NumberPerPhysical)
                    </div> 
                    </td>
                </tr>               
                <tr>
                   
                   <td>
                       <div class="editor-label">
                            @Html.LabelFor(model => model.PhysicalSalePrice)
                        </div>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.PhysicalSalePrice)
                        </div>  
                   </td>
                   <td>
                      <div class="editor-label">
                            @Html.LabelFor(model => model.PackSalePrice)
                        </div>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.PackSalePrice)
                        </div>  
                   </td>
                </tr>
            </tbody>
        </table>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" class="btn btn-red"/> |
        <b>@Html.ActionLink("Back to List", "Index")</b>
    </p>
}
